refactor infra power control