adding edison controller code