updated flash session class