middleware commands part 1