improved parsing speed, defines for HW variants