add conifg for setting ROOT_DIR
add conifg for setting ROOT_DIR