fix option order and json path