initialize for relogin function - need to be tested