slight correction to options parsing