minor tweek to amazon gem script