add logic to support short configs