updated command chaining