seems to be in order. should fix the order to return JSON isntead of bytestream