prepare for public port