added refresh and power down mechanism