Fix silly bug in the YAP adapter file and add support for older versions (but 6.3.x or later is still recommended)