EapHandler, almost finished, untested