made logic usable for zmp-daemon and atomicZmp-daemon