cleaned up code, reset not woking correctly (acs.py)