exprimental use of applyAsTemplate