class commands: polling functionality implemented.