Server message passing

not debugged yet