improve filetransfer for directorys