it seems the default version of php on debian (5.3.3) doesn't like preg_split. switched to explode() instead