adds chaining support