added killproc method