a timer
move starting and stopping to the daemon and added a timer class