work on options parsing
improve error message