adding serialization of session data