refactor parser manager