add interface

add iterface and implement it,instead of broadcasting.