infowindow optimization and better logging