added compatibilty for android app to work with as many locations as wanted