sorta fixed the daemon
tried and tested