ports functions refactored.