fix problem with ';' character in comments; we now remove comments first