socket logging
new small version