bugfixes, auth token support in CLI