fixed new process script to actually work