cleanup session a bit