server: new method to remove server query function