start of rewriting the powerplant generation