implement dispatch method to Mux
Add macro to create new object.