throw connection errors