before node rebuild