moved logic.py out of symlog/