retrieve keyspace