add some base code