logging and null handling