added gem to try and prevent redirect error