added support for typename