add library file, fix 0 rate