pull common daemon stuff into base class