more functions prototype for session class