adding middleware for merckx instead of mucking up server.py. still need to optional-ize the json merckx stuff