clean up library