minor cleanup
Socket.IO-like interface