fix miscellaneous parse bugs