partial framework for options parsing