fixes to dongle command routine