local registration working