refactoring file sharing module
refactoring file transfer