added parse opts