upgraded to work both in standard and IPAR modes, and to run goat 1.3