changed split() to explode() due to its deprecated nature blowing up the logfile