modifying server fn to take port as param