changed discover keys command to blocking version