added return session info hook