logging + null assertions