fixed a bunch of json requests stuff