quicker way to check if process is running