server runs in single thread, added aditional message types, which are not used yet