do not crash on empty block
add possible comments to more corner cases