further work on power management