use short name for -sname and longname of -name in extended script