some changes regarding typelib