Revert "fix (de)serialization incompatibility with multiple sessions"

This reverts commit b4a5aa568d479fe97954a197ba9cd48fd7306818.