refactor json loading so we can pass in an spl filename via an intent