re-fixing open-uri and json stuff