first part of lampeter parser