added power plug api