setup middleman