convert to middleman

not quite working yet