defining port in config file for easier deployment
reworked config to make it global