replace #defines with default settings struct