explode() doesn't work as well as i'd hoped, revert to preg_split() for now