small refactoring
and now we have automatic update notification