added little process stuff to script