implemented chaining multiple commands