progress on daemon/scheduler, unit tests