make setSemanticTypeCommand and change link commands backward compatible.