more error reporting, fix config bug