add extend library