change main arg handling (tentative), minor NewClient API change