rebuild library