move to freePort method