some functions redeclared as static
changed meniu implementation