- error output now shows system time
- fixed some bugs reported by coverity