better code structure for reading sites
add handling ctrl^c event in polling code