added callback methods to server