continued work on protocol in Middleware