reverted logic.py to older version