rebuild instead of clear for tests