get port from config file.
import helper functions
better structure