basic parsing to parser class