changes needed for swift bindings to work