explode() just doesn't seem to work. the preg_split() works better, but needs to be tweaked