Update deprecated and session lib to previous state