fix according to new port api