and use array for listening ports