add error reporting
Merge remote-tracking branch 'origin/master'