new tests, cli loging improvements