fixed long options parsing