ifdefs around dio_start and stop functions