finish startup logic