implementing singleton pattern for output parser