this scope guard needs to cover parsing too