trying to fix nulls with logger