fixing order of startup