stupid betterpowerdown-like thing for ios <= 6