get port from config file
refactor: pull out config