add chaining functions for spies