options parsing added, read from file