using connection.connection for callbacks