updating pg directory