some changes for typelib