added nan test to parser code as in the 2.0 version