edit port directory