now can dispatch data to client