correct exit when yml field not found