adding port as parameter