Support for script key and value
add bin-by-bin statistical error