update to have retry logic with multi credentials