removed commented code of blocking calls