init base and net dir