set port options using the api