modified logging