flatten profiles folder