implement memory 'connect'