exteranlise the refresh task

umm..i could of sworn that this was pushed days ago, apparently not :/
Merge pull request #2 from codestrip/multiUserChecks

externalise the refresh task