improved the code about process level isolation