moved filetransfer after directory has been created