resolveState