better error handling (part of #250)
better error handling in updater: part of #250 no. two
astyle