implement some poor man's polling