better start-up logic