improve retry ws calls