reworked registration process