initial middleman setup