update guide docs for new middleware style