cleanup requeueing logic