use waitout for more reliable startup