add lib and references