autoreg now working