update parser to reflect new api