add libs, convert to Class