functions for keystone setups