updated log and error output