updated running and stopping scripts