setup for file generating