more mods to modify.php

slowly getting there...