changes to make pg usable