fix Makefile for running in place, separate fetch JSON to another script thing, wrote some lookup stuffs