hand cherry pick of 7f58309f6db304193ab0475c7fc58e842604ee78
bug fix in block handling
fixed line error
Merge pull request #9 from UFParLab/BUGPATCH-part7f58309

hand cherry pick of 7f58309f6db304193ab0475c7fc58e842604ee78