checks intelligently if files have changed
