shell script to take care of kv