minor fixes for daemon threads