update to latest libbtcapi ++error checking