remove config.js
misc updates, better error handling