fix stream move
add DispatchFunction and dispatch_make_function
remove white space
add DispatchFunctionApply and dispatch_make_function_apply