rebuilding the whole application and bring it to the same state