moved code into the new mode based handle event functions and added more support for the Human mode