remove some warnings on moving files to directories