added chem.py for alarm control