set port and fix profiles