last json tweaks to get haskell working again