added library as child class, fixed small bug