redesign powerstate api for easy testing
small format change
Merge branch 'feature-service' into dev