get location from config, remove old graph test code