make port&interface configurable