better daemonizing order