fixed BindException. changed serializationType enum to int