fixing ports and sec groups issues