add lib and base