added _getCommand&&getQuery