add peerid as parameter
modules can communicate