middleman setup