cleaned up directories, file is passed by args too