JJIA: more convenience functions

Signed-off-by: jonzjia <jonzjia@gmail.com>