added generation/clearing capabilities