work around classLoader issue when deserializing