add to add port mapping func