prevents multiple instances from running at the same time