daemon bugfix, makefile