init base code