added support for sending log file