fixes logging np