logic in all time off controllers