refactored json import