ID autogenerator cleanup
some linting improved
reassigning IDs when pasting, recursive