change the implementation of file_mgr