Add "fetch" and "ns" middlewares