register types inside the library