don't check ports too early