updates. -d flag now runs as daemon.