fixed the daemon stuff