fixed nullpointer / logging with no ne