demo for blocking io