jaif comparison and command line client bugfixes