room middleware priorities