added entire middleman rebuild