added getcommandstate topic