fix parse.R issues