added library and verbose functionality