made the sleep in the startup phase conditional on platform