rearranged files for middleman