can now be run as a daemon