add modified version of ctemplate