fixing directories and files