super-simple daemon implementation