added checks for citation key uniqueness