edited map loader xml read function