trying to fix bad gateway issue