adding extending and session