trying to automate the settings RSMIN etc