removed static from walkpgdir