changed to use g_strsplit() instead