extracted the loading of parameter presets into a separate function and call it from main instead of inside the run function