gawd finally fixed that stupid array to string conversion bug