fix this better, don't use clean_proc from master.py.