issue #15: simplyfy code to detech dups in queue. analyse the file only if the file is fresh in queue