move file sender stuff to its own files