modify the pginterface class