add set/unset anonymous function.