adjustments to handle add_item() and duplicated posts