connect! method takes and sets global connection map