(refactor) update parse fn to include options as a second parameter.