more updates to NewProcessHandler