fix command chaining