add util ns, refactor api ns