fixed erronous daemon stuff from last commit