new array_get_closest function, fix xml, fix FS