add interface for parser