wrong braces gets me every time in bash
code cleanup
converted more methods over to the json compare method, with the list adapter this is more resilient