modified for sending file as testing