initalize port