move functions to utils.php + new piemenucreator