add an callback to setting named beforeFun