get server url from config file rather than hardcoded into main