added optional exterm template