did some alterations to the PE script in logging data