split distributions to libraries