file transfer is now working the new way. still some optimizations have to be made