lots of updates, including daemonizing