Better library duplicates resolving