new support for partial templates