added a check to see if another copy is running