improve file sending
that was changed for testing only