implementing extended options for before_add callback