added ability to control how long between refresh