minor changes
various php utilities and some minor js fixes