main server communicates via events and logging was improved