added a check on the server process to prevent multiple instances on the same server