made sure two handlers can't run at the same time