use dylib of discount