add options to work with unique keys