Added JSONRPC middleware and fixed thos whole shit because it was broken as hell.no idea if it is working atm