[CJ-1085] base logic
[CJ-1085] add logic for checkUpdate at start