split package into daemon & library part