added polling to console