refactor to read the port from config file
refactor to read the port from config file