add code snippet for keystone