added pre parse processing stuff