- code refactoring
- listen port check