change rest json loads directory