added dev middleware