added pgtunnels, tweaks