minor mods during postgis work