moved find_local to mk_daemon.c