update port and email