add set/unset anonymous function.
add set/unset anonymous