fix not handling input content types correctly, fix error on json decode. update version