improved check errors in create_conf function