made credential location a config option