externalise the refresh task

umm..i could of sworn that this was pushed days ago, apparently not :/

but anyway, here is the nicer refresh task for you