almost got the registration working!