remove template extension when not requiring it