readded debug.py, added shared.doLogging