partial refactor of __init__ (un)reg