added keys function to client