move context related thing into context.js
decouple
unused
remove error()
export getMiddleware