rewrote PMQueryParser.php