add serialization for  bucket