logging
fixing logging