add filename info + mode when saving directories
load and save directories
renaming