get substitution emulation right (finally)