SD: some fixes to RKM