added retry for issue ports, updated a stupid mistake in loop