cosmetic changes. added more logging