use local data to generate files