add code error and more compliant parser