fix inheritance, parsing now being dispatched in the correct class