reverted ssl connection to fix bug