maybe work again for older SWIGs