cleaning up the wrapper -- text bounds functions return a bus error 10 -- requires fixing