remove template loading code