added new linrary and a few other changes