add support for typeSpec tag