added session refresh