fixing the puppet enc
fixing the logger