debugging. fixed lang and json errors