ok write port when schedule