cleanup and merge dnets