c extend lib