define remove_duplicates and use it to better handle NOM specification from cmd-line
clarify blinding logic (was buggy?)