sessionIDs were not being generated properly

and sessions were being recreated incorrectly