support to use precompiled templates