moved parsing to appDelegate