add parser as a class