first working version of kk-ui.sh