changed logging from syserr to logger