add basic load functionality, separate JSON object values and functions