moved feed refresh code into module