fixed so that now it actually uses the config file