rebuild scripts