save and replay an expression