library cleanup