read and store pgdata which must be passed in during initialize.