modified logging setup