working version of map demo on real device