extract connection to a module