filterout bad ports