Open rules in context manager