adds support for partial templates