introduced version variable / removed unneeded & possibly incorrect profilesDir