simplified file transfer API; also moved it in extra class