praveen|dont update marker while processing failed events
praveen|cleaning up code