middleman initialization