adapt to strings being passed from carmen code rather than pure int or buffers