keep files in the right directory