refactoring + logging/statistics in progress - send log-message to server