minor refactoring

* write output of update scripts to logs
* other minor refactoring