debugging the rebuild