tweak to kis client code