prepare for ports