refactoring, notes on schema setup to mitigate unnecessary JSONing