update keys.sample, add presence validation