connection throws errors