tweak directory and save file