added wink download function