some funcion added to parser.php - almost working