this's some base code tools.