new support for port and better support in initialization