seems to be working on v8
removed import add_weights
merge