cleanup the library