load modules
various message handlers
refactor gateway.js