removing debug output and setting port.