added battery support for mavericks.