setup for middleman