adding more registration stuff from old code
adding more registration stuff from old code