samename and samenamei scripts