fix client code, add new command for checking whether tag exists