misc utils for kami