add support for freezing repo state