temporty commit with part of keyallocation and hoepfully the left over ifx for partitioenr and placer placmeent_cardianlity fix. ##$$!*