added support for type package