fix swapped variables so we properly send the key and secret