documenting middleware