PRE PROCESS SCRIPT