added build_base and build_env_dir