added interpreter template code