adding logic to detect and set params if Foreman is present