better key load check, next up prime generation