completed (for now) the FileManager
all functions should work now