add support for templates in different assembly