modularized, own daemon code