fix namespace and add the parser constructor