migrating modules.js to new socketAL style