set up port var