minor fixes and send logs to diag service