update: checkDuplName() renamed to getUniqueName()