apply port offset