support for imports within templates