use chained call when resolving template markers