improve port & ip variables