error checking and reporting finally! issue #24