detect duplicate block additions earlier, before adding data