fixed parser with span information