remove useless exit 0 from autogen script
add null check for cases where nothing is retrieved
add first time run config setup