add logic to copy same named file (by incrementing) AND document script file