wrap map with safe map call to try and prevent failure