libraries cleanup