recreate session class