added socket logging