switch to curl because wget is clearly not behaving