adding in and out params for optimising and dynamised the shim path