better error reporting
version 1.0.1