addded api version reset on logout