logging errors added