sending files partially implemented