changed the module so that 'connect' gets passed as a dependency