dont use fs in main anymore