fixed the getting of the filepaths
now causes a NullPointerException