moved session request retry outside of API