refine process manager to have script output