begin work on code to expand mugl (currently in newmugl/doit.php)