add handler of socket block