reverse order of lib and ripple