added polling to client