implemented chained command execution