fix portnum and tags