more modifications to pginterface