simplify everything by getting rid of type registry