work in progress on conversion to libnfc