fixes to store aid in session