improved file sending