prepare parser for class