logging for manager2.py and dsm.main.py
small error fixes