removed controller, add dev middleware