refactored json data requests