add setting that makes it possible to turn of autoregister.
todo