issue #80 added 'detectDuplicates' optional param to the api call