change how preference files get added as the original way doesnt seem to be working