Update pre_process.php

this closes issue#43