added a power manager