fixed setup of port