improved the code about process level isolation and server state collecting