rework stoplight procedure to work as a status check