renaming method decodeCommand to decodeAndInvokeCommand