added httpIO interface to server class