small refactor for incoming file transfers