strange timing issue. I think ssh port is availible then not. this sleep is a hack