fixed smaller stuff in daemon (cant remember)