corrected bugs in parsing script