implemented chain power up and fixed other issues.