cleaning up lib.