move server blocking and reading of messages out of ProcessManager class to avoid blocking
merge