changed up fd registration with the scheduler, aiming at fixing some memory-leak-prone situations