extract command from params and dispatch directly