added action dispatch mechanism for commands