lib adaptation