some work to get the gpio integrated into the scheduler