tweak external lib use