add init_daemon and test