remove obsolete index.js
improve error handling
1.0.2