bug in shmLogging.py