registerConstructor implemented