update runtime and sync logic
add size for flush chan