better way to get country without curl