fix port and proc