added generator controller