library rebuild