to newer version(?)

this code seems to be legacy code which use amazon for https connection.....