@prepare macro for chaining pre-processing actions