added query function and no network calibration