refactored to use config.properties to get baseurl and timeout