better error reporting ( fixed issue #4 )