demo and socket modules separated.