use curl instead so it doesn't crash