bring repo to a stable state