got register working, added untested method