change mark5 into template to allow specific versions
substitute entities