make port option actually work