adding library locally
add base and weight to chain plus obstacle