added returnFile for filemanager