add pg wait