turned the server into middleware