fixed missing import of connection[attrs]