recover old session handler