handle duplicate callbacks