changed port __contain__ back to original version