improvements to KWS deployment. Fixes #88