more logging to pinpoint nullpointer