add bson serializing stuff