fix startup logic