reorder so flask is started *before* the proxy, duh