various changes and fixes (trying to get client API stabilized) and get initial functionality working