added socket activity callbacks