works, BSON type enums and getter function