duplicate daemon check + fixes & debugging