extending opts and cfg