fixing json deserialization function, adding HttpRemoteServer for simulation