convert site to middleman