sanitize and daemonize