supports no 'object_endpoint' in swift