adding logic to mahe repository location setup more generic