change the way how to judge is first run depends on version