server co middleware