partial opt parser