added parseWithAnnotations method