fixed mk_daemon