added a script to check if a process is running