experimental rebuild script