adding some methods for sending files in background