made file sending non-blocking