added some handling to handle testing without a config file