updated
wrote test for jnxdebug and added some utility functions2