use bool to track whether we have work to do

@anthonybishopric