working (but bad) indexing for arrays (not dfs)
rewrite load, no testing yet