fixed big query connection problems and npe´s