implemented the new logger in some places