working except for connection errors