parsing/patching foo