add lib and model