fix for hostname and psql stuff