making port dependent