fixed messing up with the defaults object and parsing in dataToOptions