bugfix in datagen, added availability and return paths to pathgen