adding refresh capabilities, storing value internally as well