1. check lastcmd in local message server; 2. separate lastcmdid and lastupdateringcmdid