Robustness + hardware id check + debug flag + sdk version

@aaustin 
Tested.