little bugs on port manipulation